/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.List;

/**
 * <p>Project: jse2302 - DbUtil
 * <p>Powered by webrx On 2023-06-26 11:41:49
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class DbUtil<T> {
    private T t;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public void save(T t) {
        System.out.println("保存信息");
    }

    public static <E extends Number> void print(E e) {
        //System.out.println(this.t); 泛型静态方法，不允许使用类泛型
        System.out.println(e);
    }

    public static <E extends Number> void sum(E a,E b){
        System.out.println(a);
        System.out.println(b);
    }


    public void add(List<?> bks){
        System.out.println();
    }



    public void add(int bks){

    }



}
